import request from '@/utils/request'

// 查询用户题目列表
export function listUserquestions(query) {
  return request({
    url: '/business/userquestions/list',
    method: 'get',
    params: query
  })
}

// 查询所有用户题目列表
export function allUserquestionss(query) {
  return request({
    url: '/business/userquestions/all/userquestionss',
    method: 'get',
    params: query
  })
}

// 查询用户题目详细
export function getUserquestions(id) {
  return request({
    url: '/business/userquestions/' + id,
    method: 'get'
  })
}

// 新增用户题目
export function addUserquestions(data) {
  return request({
    url: '/business/userquestions',
    method: 'post',
    data: data
  })
}

// 修改用户题目
export function updateUserquestions(data) {
  return request({
    url: '/business/userquestions',
    method: 'put',
    data: data
  })
}

// 删除用户题目
export function delUserquestions(id) {
  return request({
    url: '/business/userquestions/' + id,
    method: 'delete'
  })
}
